import apiCreator from '../../utils/apiCreator';
import config from '../../utils/config';

const api = apiCreator();

export default {
  // 获取统计信息
  getSearchTotal: (query) => api.post(`${config.interfaces.type1}tradeAnaBndHoldInfo/getSearchTotal`, query),
  // 资管获取统计信息
  getSearchTotalWITHMAAT: (query) => api.post(`maat/${config.interfaces.type1}tradeAnaBndHoldInfo/getSearchTotal`, query),
  // 获取表头信息
  queryShowCol: (query) => api.get(`${config.interfaces.type1}web-column/find`, query),
  // 资管获取表头信息
  queryShowColWITHMAAT: (query) => api.get(`maat/${config.interfaces.type1}web-column/find`, query),
  // 保存表头信息
  saveCol: (query) => api.post(`${config.interfaces.type1}web-column/save`, query),
  // 获取token值
  //    saveToken: query =>api.get(`${config.interfaces.type1}temporaryToken/saveToken`,query),
  // 股票持仓表
  stockTable: (query) => api.post(`${config.interfaces.type1}tradeAnaStkHoldInfo/getSearch`, query),
  // 债券持仓表
  bondTable: (query) => api.post(`${config.interfaces.type1}tradeAnaBndHoldInfo/getSearch`, query),
  // 场外基金仓表
  outsideFundsTable: (query) => api.post(`${config.interfaces.type1}tradeAnaFndHoldInfo/getSearch`, query),
  // 资管etf持仓表
  outsideFundsTableWITHMAAT: (query) => api.post(`maat/${config.interfaces.type1}tradeAnaFndHoldInfo/getSearch`, query),
  // ETF持仓表
  etfTable: (query) => api.post(`${config.interfaces.type1}tradeAnaFndHoldInfo/getSearch`, query),
  // 存款持仓表
  depositMoneyTable: (query) => api.post(`${config.interfaces.type1}tradeAnaDepositHoldInfo/getSearch`, query),
  // 理财/资产计划持仓表
  assetplanTable: (query) => api.post(`${config.interfaces.type1}tradeAnaFmtHoldInfo/getSearch`, query),
  // 银行间回购持仓表
  interbankRepoTable: (query) => api.post(`${config.interfaces.type1}tradeAnaYhjhgHoldInfo/getSearch`, query),
  // 银行间买断式获取列表接口
  interbankBuyOutTable: (query) => api.post(`${config.interfaces.type1}tradeAnaYhjOutrightRepoHoldInfo/getSearch`, query),
  // 交易所回购持仓表
  exchangeRepoTable: (query) => api.post(`${config.interfaces.type1}tradeAnaJyshgHoldInfo/getSearch`, query),
  // 交易所协议回购持仓表
  exchangeXysRepoTable: (query) => api.post(`${config.interfaces.type1}tradeXyshgHoldInfo/getSearch`, query),
  // 理财直融持仓表
  directFinancingTable: (query) => api.post(`${config.interfaces.type1}tradeAnaDirectFinancingHoldInfo/getSearch`, query),
  // 非标持仓表
  nonstandardTable: (query) => api.post(`${config.interfaces.type1}tradeAnaNonstandardHoldInfo/getSearch`, query),
  // 债券借贷持仓表
  bondLendingTable: (query) => api.post(`${config.interfaces.type1}tradeAnaLendingHoldInfo/getSearch`, query),
  // 资产管理持仓表
  planInfoTable: (query) => api.post(`${config.interfaces.type1}tradeAnaPlanInfoHoldInfo/getSearch`, query),
  // 委外投资持仓表
  outSourcingTable: (query) => api.post(`${config.interfaces.type1}tradeAnaOutsourceBusiHoldInfo/getSearch`, query),
  // 股指期货
  stockFutureTable: (query) => api.post(`${config.interfaces.type1}tradeAnaFutureHoldInfo/getSearch`, query),
  // 商品期货
  shoopFutureTable: (query) => api.post(`${config.interfaces.type1}tradeAnaCommidityFutureHoldInfo/getSearch`, query),
  // 获取穿透信息
  getChildTableData: (query) => api.post(`${config.interfaces.type1}tradeAnaPlanInfoHoldInfo/getEntrustedInvestmentHoldInfo`, query),
  // 获取期货表格
  queryOptionTable: (query) => api.post(`${config.interfaces.type1}tradeAnaOptionFutureHoldInfo/getSearch`, query),
  // 国债期货
  nationalFutureTable: (query) => api.post(`${config.interfaces.type1}tradeAnaDebtFutureHoldInfo/getSearch`, query),
};
